import Vue from 'vue'
//导入vuex 包
import Vuex from 'vuex'
import store from './vuex/store'
Vue.use(Vuex)
//导入app组件
import App from './App.vue'

//导入路由
import VueRouter from 'vue-router'
//vue安装路由
Vue.use(VueRouter)
//导入自己定义的路由模块
import router from './router.js'

//引入mint-ui插件
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(Mint)

//导入mui插件
// import Mui from 'mui'
// Vue.use(Mui)
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

//导入vue-resource
import Resource from 'vue-resource'
//在vue中安装上
Vue.use(Resource)

//导入vue-preview插件
import VuePreview from 'vue-preview'
// defalut install
Vue.use(VuePreview)

//引入网页title插件
import VueWechatTitle from 'vue-wechat-title'
Vue.use(VueWechatTitle)
//创建vue实例
var vm = new Vue({
    el: "#app",
    store,
    data: {
        msg: "我是数据"
    },
    render: c => c(App),//render渲染会将原来的el的元素给覆盖掉 所以 组件都放到App.vue中渲染
    router,
})
   